import React, { Component } from 'react'

export default class NewsList extends Component {

  render() {
    return (
      this.props.list.map(item =>
        <div key={item.id}>
          <li>【新闻标题】:{item.title}</li>
          <li>【新闻作者】:{item.author}</li>
          <li>【新闻内容】:{item.content}</li>
        </div>
        )
    )
  }
}
